package com.alibaba.cloud.base.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.starter.codemine.CodeMine;
import org.springframework.starter.codemine.properties.CodeMineProperties;

//@Configuration
public class MyBeanConfig {

    @Value("${myBeanName}")
    private String myBeanName;

    @Bean
    public CodeMine codeMine() {
        CodeMineProperties properties = new CodeMineProperties();
        properties.setName(myBeanName);
        return new CodeMine(properties);
    }
}
